/**
 * Copyright (c) 2010-2011 Pierre Labatut
 *
 * This file is part of Space-Chronicles project.
 *
 * Space-Chronicles is free software: you can redistribute it and/or modify it
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or <http://code.google.com/p/space-chronicles/>.
 */
package space.game;

import java.util.logging.Logger;
import space.game.splash.InitializationTask;

class ChkEnvInitializationTask implements InitializationTask {

    static private final Logger logger = Logger.getLogger(
            ChkEnvInitializationTask.class.getName());

    public ChkEnvInitializationTask() {
    }

    public String title() {
        return "Check Environnement";
    }

    public void run() {
        if ("true".equals(System.getProperty("sun.awt.noerasebackground")) == false) {
            logger.severe(
                    "sun.awt.noerasebackground system property should be set to true, in order to avoir flickering");
        }
    }
}
